import { BrowserWindow, app } from 'electron'
import { join } from 'path'

export default class global {
  static mainWindow: BrowserWindow | null
  static followWindow: BrowserWindow | null

  static idToShopInfo: Map<string, shopInfo> = new Map()
  static customerIdToCustomerNameAndMsgs: Map<string, customerNameAndMsgs> = new Map()
  static shopNameToIsGetGoods: Map<string, boolean> = new Map()

  static isPddWindowOpen: boolean = false

  static localPath: string = join(app.getPath('home'), 'AppData', 'Local', 'db')
  static injectPath: string = join(
    app.getPath('home'),
    'AppData',
    'Local',
    'start',
    'model',
    'inject'
  )
}
